package com.example.feign.controller;

import com.example.feign.client.FeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feign")
public class FeignController {
    @Autowired
    private FeignClient feignClient;

    @RequestMapping("/env")
    public String findEnv(){
        return feignClient.findEnv();
    }
}
